public class OverLoadEx01{
 public static void main(String[] args) {
		Method method = new Method();
	    method.m(5);
	    method.m(5,10);
	    method.m("111");
	    System.out.println(method.max(5,10));
	    System.out.println(method.max(5.3741,10.581));
	    System.out.println(method.max(5.65,1.0,233.5));

 }
}

class Method{
 public void m(int n){
 	System.out.println(n*n);

 }
 public void m(int n1,int n2){
 	System.out.println(n1*n2);
 }
 public void m(String str){
 	System.out.println(str);
 }
 public int max(int n1,int n2){
 	return (n1>n2?n1:n2);
 };
 public double max(double n1,double n2){
 	return (n1>n2?n1:n2);
 }
 public double max(double n1,double n2,double n3){
  double max = n1>n2?n1:n2;
  return max>n3?max:n3;                                                                                                                                                                                                                                   
 }
}